package com.xuerhua.yxt.service.impl;

import com.xuerhua.yxt.dao.StudentSchoolAgeMapper;
import com.xuerhua.yxt.model.FruitsParam;
import com.xuerhua.yxt.model.StudentSchoolAge;
import com.xuerhua.yxt.service.IStudentSchoolAgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("StudentSchoolAgeService")
public class StudentSchoolAgeServiceImpl implements IStudentSchoolAgeService {
    @Autowired
    private StudentSchoolAgeMapper studentSchoolAgeMapper;
    @Override
    public StudentSchoolAge selectAge(Integer grade) {
        return studentSchoolAgeMapper.selectAge(grade);
    }

    @Override
    public int upadateAge(StudentSchoolAge studentSchoolAge) {
        return studentSchoolAgeMapper.upadateAge(studentSchoolAge);
    }

    @Override
    public List<FruitsParam> selectList(Integer schoolId) {
        return studentSchoolAgeMapper.selectList(schoolId);
    }
}
